package com.wanghang89.gmail;

import com.wanghang89.gmail.http.crawler.AdministraRegionCrawler;
import com.wanghang89.gmail.http.crawler.WeatherUrlCrawler;
import com.wanghang89.gmail.util.DCSContext;
import com.wanghang89.gmail.util.db.DBException;

public class DataCollectRunner {
	
	public static void main(String[] args) {
		AdministraRegionCrawler arCrawler = (AdministraRegionCrawler)DCSContext.getBean("administraRegionCrawler");
		try {
			arCrawler.crawl();
		} catch (DBException e) {
			e.printStackTrace();
		}
		WeatherUrlCrawler wuCrawler = (WeatherUrlCrawler)DCSContext.getBean("weatherUrlCrawler");
		wuCrawler.crawl();
	}
	
}
